package cn.wolfcode.service;

import cn.wolfcode.domain.MessageBoard;
import cn.wolfcode.qo.MessageBoardQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * 贴吧服务接口
 */
public interface IMessageBoardService extends IService<MessageBoard>{
    /**
    * 分页
    * @param qo
    * @return
    */
    IPage<MessageBoard> queryPage(MessageBoardQuery qo);

    /**
     * 保存帖子信息
     * @param messageBoard
     */
    void saveMessage(MessageBoard messageBoard);

    List<String> searchAllAuthors();
}
